package main

import (
	_7z "archive/7z"
	"github.com/bodgit/sevenzip"
	"log"
)

func main() {
	var reader *sevenzip.ReadCloser
	var err error
	reader, err = sevenzip.OpenReader("./testSample/test.7z")
	if err != nil {
		log.Println(err)
		return
	}
	defer reader.Close()

	_7z.ExtractAll(reader, "./test")

	//list := make([]string, 0, 10)
	//list = append(list, "甘雨-不要摸.png", "符玄 坏蛋.png")
	//
	//_7z.ExtractSome(reader, list, "./test")
}
